import { constantRoutes } from '@/router'
export default {
  state() {
    return {
      routes: []
    }
  },
  mutations: {
    setRoutes(state, route) {
      state.routes = [...constantRoutes, ...route]
    }
  },
  actions: {},
  getters: {},
  namespaced: true
  // 开启模块化，使模块成为一个命名空间模块
  // 通过模块名去访问这个模块的数据和方法
}
